<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
 * STEER Global Email Configuration
 */

global $site_config;

$config['useragent'] = "STEER";

if (isset($site_config) && is_object($site_config))
{
	$config['protocol'] = $site_config->email_protocol;
	$config['mailpath'] = $site_config->mailpath;
	$config['smtp_host'] = $site_config->smtp_host;
	$config['smtp_user'] = $site_config->smtp_user;
	$config['smtp_pass'] = $site_config->smtp_pass;
	$config['smtp_port'] = $site_config->smtp_port;
	$config['smtp_timeout'] = $site_config->smtp_timeout;
}
else
{
	$config['protocol'] = 'sendmail';
	$config['mailpath'] = '/usr/sbin/sendmail';
	$config['smtp_host'] = '';
	$config['smtp_user'] = '';
	$config['smtp_pass'] = '';
	$config['smtp_port'] = '';
	$config['smtp_timeout'] = '';	
}

$config['wordwrap'] = TRUE;
$config['wrapchars'] = 80;
$config['mailtype'] = 'text';
$config['charset'] = 'utf-8';
$config['crlf'] = "\n";
$config['newline'] = "\n";
$config['bcc_batch_mode'] = FALSE;
$config['bcc_batch_size'] = 100;